package airplane.com.example.service;

import airplane.com.example.entry.Airplane;
import airplane.com.example.utilities.Result;

import java.util.List;

public interface AirplaneService {

    Result addAirplane(Airplane airplane);
    Result updateAirplane(Airplane airplane);
    Result deleteAirplane(String airplane);

    // 分页查询
    List<Airplane> findByPage(Integer currentPage, Integer pageSize);

    // 查询总页数
    int findTotal();

}
